package io.renren.sf.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.sf.entity.HzFileEntity;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author txw_cyl
 * @email sunlightcs@gmail.com
 * @date 2022-04-22 20:37:21
 */
public interface HzFileService extends IService<HzFileEntity> {

    PageUtils queryPage(Map<String, Object> params);

    boolean createdir(long upperFid, String fileName,long userId,int fileType);

    List<HzFileEntity> queryfilesbyfid(long upperFid, long userId);

    boolean deletebyfid(long fid, long userId);

    boolean addfiledowncount(long fid);

    boolean createfile(String fileAddress, long upperFid, String fileName, long userId, int fileType, String fileSize);

    boolean deletefilesbyids(List<Long> ids, long userId);

    List<HzFileEntity> queryfilesbyname(String filename, long userId, int fileBelongto);

    List<HzFileEntity> queryfilesbystate(int verifyState, long userId);

    List<HzFileEntity> querypublicfilesbyfid(long upperFid, long userId);

    List<HzFileEntity> querypublicfilesbydowncount();

    List<HzFileEntity> querypublicfilesbyfidpca(long upperFid, long userId, Integer pcatype, Long pcaid);

    boolean changefiletodir(long fid, long did, long userId);

    boolean deleteFile(List<Long> ids);

    Page<HzFileEntity> getPublicFile(Map<String, Object> params);

    Page<HzFileEntity> getApprovalFile(Map<String, Object> params);
}

